package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

/**
 * @author weigang
 * @create ${YEAR}-${MONTH}-${DAY} ${TIME}
 */
@EnableEurekaClient
@EnableDiscoveryClient
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ServletComponentScan
public class WGEurekaClientProvider {
    public static void main(String[] args) {
        try {
            SpringApplication.run(WGEurekaClientProvider.class, args);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}